Optimal. Leaf size=56 \[ \frac {a^2 \sinh (c+d x)}{d}+\frac {b (4 a+b) \tan ^{-1}(\sinh (c+d x))}{2 d}+\frac {b^2 \tanh (c+d x) \text {sech}(c+d x)}{2 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.07, antiderivative size = 56, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 4, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.190, Rules used = {4147, 390, 385, 203} \[ \frac {a^2 \sinh (c+d x)}{d}+\frac {b (4 a+b) \tan ^{-1}(\sinh (c+d x))}{2 d}+\frac {b^2 \tanh (c+d x) \text {sech}(c+d x)}{2 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 203
Rule 385
Rule 390
Rule 4147
Rubi steps
\begin {align*} \int \cosh (c+d x) \left (a+b \text {sech}^2(c+d x)\right )^2 \, dx &=\frac {\operatorname {Subst}\left (\int \frac {\left (a+b+a x^2\right )^2}{\left (1+x^2\right )^2} \, dx,x,\sinh (c+d x)\right )}{d}\\ &=\frac {\operatorname {Subst}\left (\int \left (a^2+\frac {b (2 a+b)+2 a b x^2}{\left (1+x^2\right )^2}\right ) \, dx,x,\sinh (c+d x)\right )}{d}\\ &=\frac {a^2 \sinh (c+d x)}{d}+\frac {\operatorname {Subst}\left (\int \frac {b (2 a+b)+2 a b x^2}{\left (1+x^2\right )^2} \, dx,x,\sinh (c+d x)\right )}{d}\\ &=\frac {a^2 \sinh (c+d x)}{d}+\frac {b^2 \text {sech}(c+d x) \tanh (c+d x)}{2 d}+\frac {(b (4 a+b)) \operatorname {Subst}\left (\int \frac {1}{1+x^2} \, dx,x,\sinh (c+d x)\right )}{2 d}\\ &=\frac {b (4 a+b) \tan ^{-1}(\sinh (c+d x))}{2 d}+\frac {a^2 \sinh (c+d x)}{d}+\frac {b^2 \text {sech}(c+d x) \tanh (c+d x)}{2 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.04, size = 80, normalized size = 1.43 \[ \frac {a^2 \sinh (c) \cosh (d x)}{d}+\frac {a^2 \cosh (c) \sinh (d x)}{d}+\frac {2 a b \tan ^{-1}(\sinh (c+d x))}{d}+\frac {b^2 \tan ^{-1}(\sinh (c+d x))}{2 d}+\frac {b^2 \tanh (c+d x) \text {sech}(c+d x)}{2 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.42, size = 653, normalized size = 11.66 \[ \frac {a^{2} \cosh \left (d x + c\right )^{6} + 6 \, a^{2} \cosh \left (d x + c\right ) \sinh \left (d x + c\right )^{5} + a^{2} \sinh \left (d x + c\right )^{6} + {\left (a^{2} + 2 \, b^{2}\right )} \cosh \left (d x + c\right )^{4} + {\left (15 \, a^{2} \cosh \left (d x + c\right )^{2} + a^{2} + 2 \, b^{2}\right )} \sinh \left (d x + c\right )^{4} + 4 \, {\left (5 \, a^{2} \cosh \left (d x + c\right )^{3} + {\left (a^{2} + 2 \, b^{2}\right )} \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right )^{3} - {\left (a^{2} + 2 \, b^{2}\right )} \cosh \left (d x + c\right )^{2} + {\left (15 \, a^{2} \cosh \left (d x + c\right )^{4} + 6 \, {\left (a^{2} + 2 \, b^{2}\right )} \cosh \left (d x + c\right )^{2} - a^{2} - 2 \, b^{2}\right )} \sinh \left (d x + c\right )^{2} - a^{2} + 2 \, {\left ({\left (4 \, a b + b^{2}\right )} \cosh \left (d x + c\right )^{5} + 5 \, {\left (4 \, a b + b^{2}\right )} \cosh \left (d x + c\right ) \sinh \left (d x + c\right )^{4} + {\left (4 \, a b + b^{2}\right )} \sinh \left (d x + c\right )^{5} + 2 \, {\left (4 \, a b + b^{2}\right )} \cosh \left (d x + c\right )^{3} + 2 \, {\left (5 \, {\left (4 \, a b + b^{2}\right )} \cosh \left (d x + c\right )^{2} + 4 \, a b + b^{2}\right )} \sinh \left (d x + c\right )^{3} + 2 \, {\left (5 \, {\left (4 \, a b + b^{2}\right )} \cosh \left (d x + c\right )^{3} + 3 \, {\left (4 \, a b + b^{2}\right )} \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right )^{2} + {\left (4 \, a b + b^{2}\right )} \cosh \left (d x + c\right ) + {\left (5 \, {\left (4 \, a b + b^{2}\right )} \cosh \left (d x + c\right )^{4} + 6 \, {\left (4 \, a b + b^{2}\right )} \cosh \left (d x + c\right )^{2} + 4 \, a b + b^{2}\right )} \sinh \left (d x + c\right )\right )} \arctan \left (\cosh \left (d x + c\right ) + \sinh \left (d x + c\right )\right ) + 2 \, {\left (3 \, a^{2} \cosh \left (d x + c\right )^{5} + 2 \, {\left (a^{2} + 2 \, b^{2}\right )} \cosh \left (d x + c\right )^{3} - {\left (a^{2} + 2 \, b^{2}\right )} \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right )}{2 \, {\left (d \cosh \left (d x + c\right )^{5} + 5 \, d \cosh \left (d x + c\right ) \sinh \left (d x + c\right )^{4} + d \sinh \left (d x + c\right )^{5} + 2 \, d \cosh \left (d x + c\right )^{3} + 2 \, {\left (5 \, d \cosh \left (d x + c\right )^{2} + d\right )} \sinh \left (d x + c\right )^{3} + 2 \, {\left (5 \, d \cosh \left (d x + c\right )^{3} + 3 \, d \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right )^{2} + d \cosh \left (d x + c\right ) + {\left (5 \, d \cosh \left (d x + c\right )^{4} + 6 \, d \cosh \left (d x + c\right )^{2} + d\right )} \sinh \left (d x + c\right )\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.14, size = 112, normalized size = 2.00 \[ \frac {2 \, a^{2} {\left (e^{\left (d x + c\right )} - e^{\left (-d x - c\right )}\right )} + {\left (\pi + 2 \, \arctan \left (\frac {1}{2} \, {\left (e^{\left (2 \, d x + 2 \, c\right )} - 1\right )} e^{\left (-d x - c\right )}\right )\right )} {\left (4 \, a b + b^{2}\right )} + \frac {4 \, b^{2} {\left (e^{\left (d x + c\right )} - e^{\left (-d x - c\right )}\right )}}{{\left (e^{\left (d x + c\right )} - e^{\left (-d x - c\right )}\right )}^{2} + 4}}{4 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.36, size = 63, normalized size = 1.12 \[ \frac {a^{2} \sinh \left (d x +c \right )}{d}+\frac {4 a b \arctan \left ({\mathrm e}^{d x +c}\right )}{d}+\frac {b^{2} \mathrm {sech}\left (d x +c \right ) \tanh \left (d x +c \right )}{2 d}+\frac {b^{2} \arctan \left ({\mathrm e}^{d x +c}\right )}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.42, size = 101, normalized size = 1.80 \[ -b^{2} {\left (\frac {\arctan \left (e^{\left (-d x - c\right )}\right )}{d} - \frac {e^{\left (-d x - c\right )} - e^{\left (-3 \, d x - 3 \, c\right )}}{d {\left (2 \, e^{\left (-2 \, d x - 2 \, c\right )} + e^{\left (-4 \, d x - 4 \, c\right )} + 1\right )}}\right )} - \frac {4 \, a b \arctan \left (e^{\left (-d x - c\right )}\right )}{d} + \frac {a^{2} \sinh \left (d x + c\right )}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.44, size = 172, normalized size = 3.07 \[ \frac {\mathrm {atan}\left (\frac {{\mathrm {e}}^{d\,x}\,{\mathrm {e}}^c\,\left (b^2\,\sqrt {d^2}+4\,a\,b\,\sqrt {d^2}\right )}{d\,\sqrt {16\,a^2\,b^2+8\,a\,b^3+b^4}}\right )\,\sqrt {16\,a^2\,b^2+8\,a\,b^3+b^4}}{\sqrt {d^2}}+\frac {a^2\,{\mathrm {e}}^{c+d\,x}}{2\,d}-\frac {a^2\,{\mathrm {e}}^{-c-d\,x}}{2\,d}+\frac {b^2\,{\mathrm {e}}^{c+d\,x}}{d\,\left ({\mathrm {e}}^{2\,c+2\,d\,x}+1\right )}-\frac {2\,b^2\,{\mathrm {e}}^{c+d\,x}}{d\,\left (2\,{\mathrm {e}}^{2\,c+2\,d\,x}+{\mathrm {e}}^{4\,c+4\,d\,x}+1\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \left (a + b \operatorname {sech}^{2}{\left (c + d x \right )}\right )^{2} \cosh {\left (c + d x \right )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________